﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ontheroad
{
    public class Traffy
    {
        public string appid = "00001627";
        public string hiddenkey = "QFn1GJ9AUX";
        public string rd;
        public string sessionkey;
        public Uri requestrd = new Uri("http://api.traffy.in.th/apis/getKey.php?appid=00001627");

        public string getsessionkey(string rd) {
            sessionkey = MD5Core.GetHashString(appid + rd) + MD5Core.GetHashString(hiddenkey + rd);
            return sessionkey;
        }
               
    }
}
